<% form_for @tool,
     :html => {
       :id => :new_or_edit_tool_form
     } do |f| %>
  <dl>
    <dt>分类：</dt>
    <dd>
      <%= f.select :tool_type_id, ToolType.all.collect {|c| [ c.name, c.id ] } %>
    </dd>
  </dl>
  <dl>
    <dt>代码：</dt>
    <dd>
      <%= f.text_field :code %>
    </dd>
  </dl>
  <dl>
    <dt>名称：</dt>
    <dd>
      <%= f.text_field :name %>
    </dd>
  </dl>
  <dl>
    <dt>月租：</dt>
    <dd>
      <%= f.text_field :month_fare %>
    </dd>
  </dl>
  <dl>
    <dt>版本号：</dt>
    <dd>
      <%= f.text_field :version %>
    </dd>
  </dl>
  <dl>
    <dt>出炉日期：</dt>
    <dd class='auto'>
      <%= f.date_select :released_on, :start_yeas => 2010 %>
    </dd>
  </dl>
  <dl>
    <dt>关键字：</dt>
    <dd>
      <%= f.text_field :key_words %>
    </dd>
  </dl>
  <dl>
    <dt>默认所在栏目：</dt>
    <dd>
      <%= f.select :default_column, [['左',1],['中',2],['右',3]] %>
    </dd>
  </dl>
  <dl>
    <dt>flash_embed：</dt>
    <dd>
      <%= f.text_field :flash_embed %>
    </dd>
  </dl>
  <dl>
    <dt>action_type：</dt>
    <dd>
      <%= f.select :action_type, [['嵌入','embed'],['弹出','popup'],['嵌入&弹出','embed_and_popup']] %>
    </dd>
  </dl>
  <dl>
    <dt>index_url_in_show：</dt>
    <dd>
      <%= f.text_field :index_url_in_show %>
    </dd>
  </dl>
  <dl>
    <dt>index_url_in_portalet：</dt>
    <dd>
      <%= f.text_field :index_url_in_portalet %>
    </dd>
  </dl>
  <dl>
    <dt>支持类型：</dt>
    <dd class='auto'>
      <%= f.check_box :support_web,{:class => :no},'yes','no' %> 
      <%= f.label 'support_web', supports_web(:size => '29x29') %>
      <%= f.check_box :support_sms,{:class => :no},'yes','no' %>
      <%= f.label 'support_sms', supports_sms(:size => '29x29') %>
      <%= f.check_box :support_email,{:class => :no},'yes','no' %>
      <%= f.label 'support_email', supports_email(:size => '29x29') %>
    </dd>
  </dl>
  <dl>
    <dt>简介：</dt>
    <dd>
      <%= f.cktext_area :synopsis, :width => 830, :height => 300 %>
    </dd>
  </dl>
  <dl>
    <dt>详细介绍：</dt>
    <dd>
      <%= f.cktext_area :introduce, :width => 830, :height => 400 %>
    </dd>
  </dl>
  <dl>
    <dt>版本说明：</dt>
    <dd>
      <%= f.cktext_area :version_statement, :width => 830, :height => 300 %>      
    </dd>
  </dl>
<% end %>  